{"ast":null,"code":"import _slicedToArray from \"/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/@babel/runtime/helpers/esm/slicedToArray.js\";\nimport * as React from 'react';\nexport default function useDebounce(value) {\n  var _React$useState = React.useState(value),\n    _React$useState2 = _slicedToArray(_React$useState, 2),\n    cacheValue = _React$useState2[0],\n    setCacheValue = _React$useState2[1];\n  React.useEffect(function () {\n    var timeout = setTimeout(function () {\n      setCacheValue(value);\n    }, value.length ? 0 : 10);\n    return function () {\n      clearTimeout(timeout);\n    };\n  }, [value]);\n  return cacheValue;\n}","map":{"version":3,"names":["React","useDebounce","value","useState","cacheValue","setCacheValue","useEffect","timeout","setTimeout","length","clearTimeout"],"sources":["/Users/poppie/Desktop/development/messenger/app/frontend/node_modules/antd/es/form/hooks/useDebounce.js"],"sourcesContent":["import * as React from 'react';\nexport default function useDebounce(value) {\n  const [cacheValue, setCacheValue] = React.useState(value);\n  React.useEffect(() => {\n    const timeout = setTimeout(() => {\n      setCacheValue(value);\n    }, value.length ? 0 : 10);\n    return () => {\n      clearTimeout(timeout);\n    };\n  }, [value]);\n  return cacheValue;\n}"],"mappings":";AAAA,OAAO,KAAKA,KAAK,MAAM,OAAO;AAC9B,eAAe,SAASC,WAAW,CAACC,KAAK,EAAE;EACzC,sBAAoCF,KAAK,CAACG,QAAQ,CAACD,KAAK,CAAC;IAAA;IAAlDE,UAAU;IAAEC,aAAa;EAChCL,KAAK,CAACM,SAAS,CAAC,YAAM;IACpB,IAAMC,OAAO,GAAGC,UAAU,CAAC,YAAM;MAC/BH,aAAa,CAACH,KAAK,CAAC;IACtB,CAAC,EAAEA,KAAK,CAACO,MAAM,GAAG,CAAC,GAAG,EAAE,CAAC;IACzB,OAAO,YAAM;MACXC,YAAY,CAACH,OAAO,CAAC;IACvB,CAAC;EACH,CAAC,EAAE,CAACL,KAAK,CAAC,CAAC;EACX,OAAOE,UAAU;AACnB"},"metadata":{},"sourceType":"module"}